package com.gamelife.test;

import com.gamelife.spring.AnnotationConfigApplicationContext;
import com.gamelife.test.config.SpringConfig;
import com.gamelife.test.service.UserService;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringConfig.class);

        UserService userService = (UserService) applicationContext.getBean("userService");

        userService.print();
    }
}
